<?php
/*
	辅助应用
*/
defined('BY_JYA') or exit('error');
$list = array(
	array('title'=>'营销活动','list'=>array(
			array('name'=>'jy_merchgame_ms','title'=>'秒杀活动','desc'=>'促销保单利器','icon'=>'',),
			//array('name'=>'jy_merchgame_cj','title'=>'抽奖活动','desc'=>'促销保单利器','icon'=>'',),
			array('name'=>'jy_merchgame_fx','title'=>'分销活动','desc'=>'促销保单利器','icon'=>'',),
			array('name'=>'jy_merchgame_pt','title'=>'拼团活动','desc'=>'促销保单利器','icon'=>'',),
			//array('name'=>'jy_merchgame_ping','title'=>'万人拼团','desc'=>'促销保单利器','icon'=>'',),
			array('name'=>'jy_merchgame_bao','title'=>'付费报名','desc'=>'发起团活动报名','icon'=>'',),
			array('name'=>'jy_merchgame_tg','title'=>'团购活动','desc'=>'促销保单利器','icon'=>'',),
			array('name'=>'jy_merchgame_bm','title'=>'帮卖活动','desc'=>'促销保单利器','icon'=>'',),
	)),
	array('title'=>'配套工具','list'=>array(
			array('name'=>'jy_merchtool_tb','title'=>'填表登记','desc'=>'信息收集统计','icon'=>'',),
			array('name'=>'jy_merchtool_bm','title'=>'活动报名','desc'=>'聚会 培训 会议','icon'=>'',),
			array('name'=>'jy_merchtool_yy','title'=>'服务预约','desc'=>'商家服务预约','icon'=>'',),
			array('name'=>'jy_merchtool_tz','title'=>'通知公告','desc'=>'公告 通知信息','icon'=>'',),
			array('name'=>'jy_merchtool_vote','title'=>'投票评选','desc'=>'投票 排名','icon'=>'',),
			array('name'=>'jy_merchtool_wj','title'=>'问卷调查','desc'=>'投诉反馈','icon'=>'',),
			array('name'=>'jy_merchtool_fee','title'=>'费用收集','desc'=>'集体/班级收款/社群捐款','icon'=>'',),
			//array('name'=>'jy_merchtool_red','title'=>'红包接龙','desc'=>'裂变红包/随机抽取红包','icon'=>'',),
			array('name'=>'jy_merchtool_gq','title'=>'供求信息','desc'=>'供求信息的发布、周边信息','icon'=>'',),
	)),
);
foreach($list as &$type){
	foreach($type['list'] as &$p){
		$install = check_permission($p['name']);
		if($install){
			$p['is_install'] = 1;
			$p['is_show'] = 1;
		}else{
			$p['is_install'] = 0;
			$p['is_show'] = 0;
			if($_SESSION['isfounder']){
				$p['is_show'] = 1;
			}
		}
		
	}
}
return  $list;